<!-- 流程标准按钮 详情-->
<template>
    <div>
        <a-form-model :model="act_dsn_btn">
                    <a-form-model-item
                            :label-col="labelCol"
                            :wrapper-col="wrapperCol"
                            label="分组">
                        <span v-text="act_dsn_btn.group_"></span>
                    </a-form-model-item>
                    <a-form-model-item
                            :label-col="labelCol"
                            :wrapper-col="wrapperCol"
                            label="按钮文字">
                        <span v-text="act_dsn_btn.text"></span>
                    </a-form-model-item>
                    <a-form-model-item
                            :label-col="labelCol"
                            :wrapper-col="wrapperCol"
                            label="按钮样式">
                        <span v-text="act_dsn_btn.class_"></span>
                    </a-form-model-item>
                    <a-form-model-item
                            :label-col="labelCol"
                            :wrapper-col="wrapperCol"
                            label="按钮图标">
                        <span v-text="act_dsn_btn.icon_"></span>
                    </a-form-model-item>
                    <a-form-model-item
                            :label-col="labelCol"
                            :wrapper-col="wrapperCol"
                            label="按钮事件">
                        <span v-text="act_dsn_btn.click_"></span>
                    </a-form-model-item>
                    <a-form-model-item
                            :label-col="labelCol"
                            :wrapper-col="wrapperCol"
                            label="顺序">
                        <span v-text="act_dsn_btn.index"></span>
                    </a-form-model-item>
                    <a-form-model-item
                            :label-col="labelCol"
                            :wrapper-col="wrapperCol"
                            label="是否启用">
                        <span v-text="act_dsn_btn.enable_"></span>
                    </a-form-model-item>
            <a-form-model-item>
                <div class="text-center">
                    <a-button class="m-r-8"  icon="close" @click="onClose">
                        关闭
                    </a-button>
                </div>
            </a-form-model-item>
        </a-form-model>
    </div>
</template>
<script>
    import { viewAct_dsn_btn} from '@/api/workflow/act_dsn_btn'

    export default {
        data () {
            return {
                labelCol: { span: 6 }, // label宽
                wrapperCol: { span: 18 }, // 组件宽

                act_dsn_btn: {
                    id_: '',
                    group_: '',
                    text: '',
                    class_: '',
                    icon_: '',
                    click_: '',
                    index: '',
                    enable_: '',
                }, //流程标准按钮信息
            }
        },
        created () {
        },
        methods: {
            /**
             * 关闭页面
             */
            onClose () {
                this.$emit('close')
            },
            /**
             * 查询流程标准按钮信息
             */
            findAct_dsn_btnById (id) {
                viewAct_dsn_btn(id).then(res => {
                    this.act_dsn_btn = res.data
                })
            },
        }
    }
</script>
<style scoped>
</style>